import styled from "styled-components";
import logoImg from "../../asstes/img/nav-logo.png";

export const HeaderWrapper = styled.div`
  display: flex;
  height: 58px;
  padding: 0 39px;
  border-bottom: 1px solid #eee;
`;
export const NavLogo = styled.a`
  display: block;
  position: absolute;
  height: 56px;
  width: 100px;
  background: url("${logoImg}") no-repeat;
  background-size: contain;
`;
export const Nav = styled.div`
  display: flex;
  justify-content: space-between;
  width: 960px;
  height: 100%;
  margin: 0 auto;
`;
export const NavLeft = styled.div`
  position: releative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 17px;
  .p1 {
    color: #ea6f5a;
    cursor: pointer;
  }
  .p2 {
    margin: 0 30px;
    color: #666;
    cursor: pointer;
  }
  .search {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px 0 20px;
    height: 38px;
    border-radius: 19px;
    background-color: #eee;
    border: 1px solid #eee;
    box-sizing: border-box;
  }
  .icon-fangdajing {
    display: block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
  }
  input {
    display: block;
    width: 120px;
    background-color: transparent;
    border: none;
    transition: all 0.5s;
    &::placeholder {
      color: #999;
    }
  }
  .search.focus input {
    width: 190px;
  }
  .search.focus .icon-fangdajing {
    background-color: #999;
    color: #fff;
  }
`;
export const History = styled.div`
  position: absolute;
  min-width: 240px;
  left: 0;
  top: 45px;
  padding: 5px;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-sizing: border-box;
  .item {
    display: flex;
    height: 40px;
    padding-right: 10px;
    align-items: center;
    justify-content: space-between;
    text-indent: 1em;
    font-size: 14px;
    .item__left {
      .iconfont {
        margin-right: 10px;
      }
    }
    .icon-chahao {
      display: none;
    }
    &:hover {
      background-color:#e5e5e5;
      cursor: pointer;
      .icon-chahao {
        display: block;
      }
    }
  }
`;
export const NavRight = styled.div`
  display: flex;
  align-items: center;
  height: 100%;
  color: #999;
  font-size: 17px;
  a {
    margin-left: 20px;
    color: #999;
  }
`;

export const HeaderLink = styled.div`
  position: absolute;
  height: 58px;
  top: 0;
  right: 30px;
  display: flex;
  align-items: center;
`;
export const LinkItem = styled.button`
  padding: 6px 12px;
  border: 1px solid #ec6149;
  color: #ec6149;
  background-color: #fff;
  font-size: 16px;
  border-radius: 18px;
  min-width: 80px;
  margin-right: 25px;
  &.link2 {
    color: #fff;
    background-color: #ec6149;
    .icon-yumaobi {
      margin-right: 3px;
    }
  }
`;
